#!/bin/sh

set -x
dir=$(pwd)

# install glog
cd glog && ./autogen.sh && ./configure && make && sudo make install
cd $dir

# install gtest
cd googletest && mkdir build && cd build && cmake .. && make && sudo make install
cd $dir

# install boost
wget https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.gz && tar zxvf boost_1_69_0.tar.gz && cd boost_1_69_0 && sudo ./bootstrap.sh --prefix=/usr/local && sudo ./b2 install && cd tools/build && sudo ./bootstrap.sh && sudo ./b2 install --prefix=/usr/local
cd $dir
